//package com.yehangtech.designpattern.结构型_外观.door.config;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@EnableConfigurationProperties(StartServiceProperties.class)
//public class StartAutoConfig {
//    @Autowired
//    private StartServiceProperties properties;
//
//    @Bean
//    @ConditionalOnProperty(prefix = "spring.door", name = "enable", havingValue = "true")
//    public StartService startService() {
//        return new StartService(properties.getUserNameStr(), properties.getSplit());
//    }
//}
